package com.gree.scmservice.service.saas;

import com.gree.common.entity.ReturnVo;
import com.gree.common.entity.TablePageData;
import com.gree.scmservice.entity.saas.SaasSysOrder;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 包路径: com.gree.scmservice.service.saas
 * 项目名: scm-api
 * 创建时间: 2021-07-13 9:59
 * 描述: TODO
 **/
public interface SaasOrderService {

    int saveOrder(SaasSysOrder saasSysOrder);

    int updateOrder(SaasSysOrder saasSysOrder);

    TablePageData<SaasSysOrder> selectOrderPage(SaasSysOrder saasSysOrder);

    TablePageData<SaasSysOrder> selectOrderPageOnUser(SaasSysOrder saasSysOrder);

    SaasSysOrder getOrderNo(String orderNO);

    SaasSysOrder getOutTradeNoOrder(String outTradeNo);

    int getCheckOutTradeNo(String groupId);

    int updateDelOrderById(String orderNo);

    int updateDelOrderByIds(String[] orderNos);
   
    int updateStatusOrder(String orderNo, int orderStatus);

    int closeOrder(String orderNo);

    int updatePayTypeOrder(SaasSysOrder saasSysOrder);

    int delOrderNos(String[] orderNOs);

    ReturnVo uploadPayCert(MultipartFile file, String orderNo);

    void downloadPayCert(String payCert, HttpServletResponse response);
}
